package com.springboot.middleware.middleware_grab_red_envelopes.model.mapper;

import com.springboot.middleware.middleware_grab_red_envelopes.model.entity.RedDetail;
import com.springboot.middleware.middleware_grab_red_envelopes.model.entity.RedDetailExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface RedDetailMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    long countByExample(RedDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int deleteByExample(RedDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int insert(RedDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int insertSelective(RedDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    List<RedDetail> selectByExample(RedDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    RedDetail selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int updateByExampleSelective(@Param("record") RedDetail record, @Param("example") RedDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int updateByExample(@Param("record") RedDetail record, @Param("example") RedDetailExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int updateByPrimaryKeySelective(RedDetail record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table red_detail
     *
     * @mbg.generated Mon Jan 03 14:52:59 CST 2022
     */
    int updateByPrimaryKey(RedDetail record);
}